import React from 'react';

import './style.css'
// import v from './video/sijihuisuo.mp4'
// import v1 from './video/videott.mp4'
// import v2 from './video/siji04.mp4'

class PopupVideos extends React.Component {
  constructor(){
    super();
    this.state={
      data:[],
      flag:false
    }
  }
  componentWillMount(){
    this.loadingDate();
  }
  loadingDate(){

  }
  onClickVideoState(){
      this.props.setParentState({
        videoFlag:false,
        txtValue:1,
      })
  }
  render() {

    return (
      <div>
        <div className='video-popup'>
          <h1>video,弹出层</h1>
            <video controls className='video-style'>
              {/*<source src={v1} type='video/mp4'/>*/}
            </video>
            <div className='close-vido-popup' onClick={this.onClickVideoState.bind(this)}>x</div>

        </div>

      </div>
    )
  }

}

export default PopupVideos
